<div id="account">
	<div style="display:none;" th:fragment="title" th:inline="text">Registro - Fondoofertas</div>

	<div id="register">
		<h3>Registro de una Cuenta</h3>
		<p>No posee una Cuenta a&uacute;n? Reg&iacute;strese en este momento para obtener acceso como miembro.</p>		

		<blc:form id="registrationForm" action="#" th:object="${registrationForm}" th:action="@{/register}" method="post" class="clearfix">
			<input type="hidden" th:field="*{redirectUrl}" />
				
			<div class="form50">
				<label for="customer.emailAddress">Email</label>
				<span class="error" th:if="${#fields.hasErrors('customer.emailAddress')}" th:errors="*{customer.emailAddress}"></span>
				<input type="email" th:field="*{customer.emailAddress}" class="field50" th:classappend="${#fields.hasErrors('customer.emailAddress')}? 'fieldError'" />
			</div>
			<div class="form50">
				<label for="customer.firstName">Nombre</label>
				<span class="error" th:if="${#fields.hasErrors('customer.firstName')}" th:errors="*{customer.firstName}"></span>
				<input type="text" th:field="*{customer.firstName}" class="field50" th:classappend="${#fields.hasErrors('customer.firstName')}? 'fieldError'" />
			</div>
			<div class="form50">
				<label for="customer.lastName">Apellido</label>
				<span class="error" th:if="${#fields.hasErrors('customer.lastName')}" th:errors="*{customer.lastName}"></span>
				<input type="text" th:field="*{customer.lastName}" class="field50" th:classappend="${#fields.hasErrors('customer.lastName')}? 'fieldError'" />
			</div>			
			<div class="form50">
				<label for="password">Contrase&ntilde;a</label>
			    <span class="error" th:if="${#fields.hasErrors('password')}" th:errors="*{password}"></span>
				<input type="password" th:field="*{password}" class="field50" th:classappend="${#fields.hasErrors('password')}? 'fieldError'" />
			</div>
			<div class="form50">
				<label for="confirmPassword">Confirmar Contrase&ntilde;a</label>
			    <span class="error" th:if="${#fields.hasErrors('passwordConfirm')}" th:errors="*{passwordConfirm}"></span>
				<input type="password" th:field="*{passwordConfirm}" class="field50" th:classappend="${#fields.hasErrors('passwordConfirm')}? 'fieldError'" />
			</div>			
			
			<div class="login_register">
				<input class="register_button big red" type="submit" value="Registro"/>
			</div>
			<div class="login_register_alt_links">
				<a class="account" th:href="@{/login}">Ingreso</a>
				<br/>
				<a class="account" th:href="@{/login/forgotPassword}">Olvid&oacute; su contrase&ntilde;a?</a>
			</div>
		</blc:form>
	</div>	
</div>
